package com.naiterui.ehp.bs.cms.modules.user.feign;

import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bp.support.exception.ResponseVO;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "emr", url = "${ehp.domain.emr}")
public interface EmrFeignClient {

    @PostMapping("/inner/patient/case/list")
    String patientCaseList(@RequestParam("patientId") Long patientId, @RequestParam("inquirerId") Long inquirerId, @RequestParam("page") int page,
                           @RequestParam("num") int num) throws BusinessException;

    @GetMapping("/inner/patient/case/signFile")
    ResponseVO<String> caseSignPdfUrl(@RequestParam("recordId") String recordId) throws BusinessException;
}
